Optimal. Leaf size=312 \[ \frac {\left (2 A b^2-4 a b B+6 a^2 C+b^2 C\right ) \tanh ^{-1}(\sin (c+d x))}{2 b^4 d}-\frac {2 a \left (a^2 A b^2-2 A b^4-2 a^3 b B+3 a b^3 B+3 a^4 C-4 a^2 b^2 C\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a+b}}\right )}{(a-b)^{3/2} b^4 (a+b)^{3/2} d}+\frac {\left (2 a^2 b B-b^3 B-a b^2 (A-2 C)-3 a^3 C\right ) \tan (c+d x)}{b^3 \left (a^2-b^2\right ) d}+\frac {\left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right ) \sec (c+d x) \tan (c+d x)}{2 b^2 \left (a^2-b^2\right ) d}-\frac {\left (A b^2-a (b B-a C)\right ) \sec ^2(c+d x) \tan (c+d x)}{b \left (a^2-b^2\right ) d (a+b \sec (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.89, antiderivative size = 312, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.195, Rules used = {4183, 4177,
4167, 4083, 3855, 3916, 2738, 214} \begin {gather*} -\frac {\tan (c+d x) \sec ^2(c+d x) \left (A b^2-a (b B-a C)\right )}{b d \left (a^2-b^2\right ) (a+b \sec (c+d x))}+\frac {\tan (c+d x) \sec (c+d x) \left (3 a^2 C-2 a b B+2 A b^2-b^2 C\right )}{2 b^2 d \left (a^2-b^2\right )}+\frac {\left (6 a^2 C-4 a b B+2 A b^2+b^2 C\right ) \tanh ^{-1}(\sin (c+d x))}{2 b^4 d}+\frac {\tan (c+d x) \left (-3 a^3 C+2 a^2 b B-a b^2 (A-2 C)-b^3 B\right )}{b^3 d \left (a^2-b^2\right )}-\frac {2 a \left (3 a^4 C-2 a^3 b B+a^2 A b^2-4 a^2 b^2 C+3 a b^3 B-2 A b^4\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a+b}}\right )}{b^4 d (a-b)^{3/2} (a+b)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 2738
Rule 3855
Rule 3916
Rule 4083
Rule 4167
Rule 4177
Rule 4183
Rubi steps
\begin {align*} \int \frac {\sec ^3(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+b \sec (c+d x))^2} \, dx &=-\frac {\left (A b^2-a (b B-a C)\right ) \sec ^2(c+d x) \tan (c+d x)}{b \left (a^2-b^2\right ) d (a+b \sec (c+d x))}-\frac {\int \frac {\sec ^2(c+d x) \left (2 \left (A b^2-a (b B-a C)\right )+b (b B-a (A+C)) \sec (c+d x)-\left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right ) \sec ^2(c+d x)\right )}{a+b \sec (c+d x)} \, dx}{b \left (a^2-b^2\right )}\\ &=\frac {\left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right ) \sec (c+d x) \tan (c+d x)}{2 b^2 \left (a^2-b^2\right ) d}-\frac {\left (A b^2-a (b B-a C)\right ) \sec ^2(c+d x) \tan (c+d x)}{b \left (a^2-b^2\right ) d (a+b \sec (c+d x))}-\frac {\int \frac {\sec (c+d x) \left (-a \left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right )+b \left (2 A b^2-2 a b B+a^2 C+b^2 C\right ) \sec (c+d x)-2 \left (2 a^2 b B-b^3 B-a b^2 (A-2 C)-3 a^3 C\right ) \sec ^2(c+d x)\right )}{a+b \sec (c+d x)} \, dx}{2 b^2 \left (a^2-b^2\right )}\\ &=\frac {\left (2 a^2 b B-b^3 B-a b^2 (A-2 C)-3 a^3 C\right ) \tan (c+d x)}{b^3 \left (a^2-b^2\right ) d}+\frac {\left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right ) \sec (c+d x) \tan (c+d x)}{2 b^2 \left (a^2-b^2\right ) d}-\frac {\left (A b^2-a (b B-a C)\right ) \sec ^2(c+d x) \tan (c+d x)}{b \left (a^2-b^2\right ) d (a+b \sec (c+d x))}-\frac {\int \frac {\sec (c+d x) \left (-a b \left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right )-\left (a^2-b^2\right ) \left (2 A b^2-4 a b B+6 a^2 C+b^2 C\right ) \sec (c+d x)\right )}{a+b \sec (c+d x)} \, dx}{2 b^3 \left (a^2-b^2\right )}\\ &=\frac {\left (2 a^2 b B-b^3 B-a b^2 (A-2 C)-3 a^3 C\right ) \tan (c+d x)}{b^3 \left (a^2-b^2\right ) d}+\frac {\left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right ) \sec (c+d x) \tan (c+d x)}{2 b^2 \left (a^2-b^2\right ) d}-\frac {\left (A b^2-a (b B-a C)\right ) \sec ^2(c+d x) \tan (c+d x)}{b \left (a^2-b^2\right ) d (a+b \sec (c+d x))}+\frac {\left (a \left (2 A b^4+2 a^3 b B-3 a b^3 B-a^2 b^2 (A-4 C)-3 a^4 C\right )\right ) \int \frac {\sec (c+d x)}{a+b \sec (c+d x)} \, dx}{b^4 \left (a^2-b^2\right )}+\frac {\left (2 A b^2-4 a b B+6 a^2 C+b^2 C\right ) \int \sec (c+d x) \, dx}{2 b^4}\\ &=\frac {\left (2 A b^2-4 a b B+6 a^2 C+b^2 C\right ) \tanh ^{-1}(\sin (c+d x))}{2 b^4 d}+\frac {\left (2 a^2 b B-b^3 B-a b^2 (A-2 C)-3 a^3 C\right ) \tan (c+d x)}{b^3 \left (a^2-b^2\right ) d}+\frac {\left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right ) \sec (c+d x) \tan (c+d x)}{2 b^2 \left (a^2-b^2\right ) d}-\frac {\left (A b^2-a (b B-a C)\right ) \sec ^2(c+d x) \tan (c+d x)}{b \left (a^2-b^2\right ) d (a+b \sec (c+d x))}+\frac {\left (a \left (2 A b^4+2 a^3 b B-3 a b^3 B-a^2 b^2 (A-4 C)-3 a^4 C\right )\right ) \int \frac {1}{1+\frac {a \cos (c+d x)}{b}} \, dx}{b^5 \left (a^2-b^2\right )}\\ &=\frac {\left (2 A b^2-4 a b B+6 a^2 C+b^2 C\right ) \tanh ^{-1}(\sin (c+d x))}{2 b^4 d}+\frac {\left (2 a^2 b B-b^3 B-a b^2 (A-2 C)-3 a^3 C\right ) \tan (c+d x)}{b^3 \left (a^2-b^2\right ) d}+\frac {\left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right ) \sec (c+d x) \tan (c+d x)}{2 b^2 \left (a^2-b^2\right ) d}-\frac {\left (A b^2-a (b B-a C)\right ) \sec ^2(c+d x) \tan (c+d x)}{b \left (a^2-b^2\right ) d (a+b \sec (c+d x))}+\frac {\left (2 a \left (2 A b^4+2 a^3 b B-3 a b^3 B-a^2 b^2 (A-4 C)-3 a^4 C\right )\right ) \text {Subst}\left (\int \frac {1}{1+\frac {a}{b}+\left (1-\frac {a}{b}\right ) x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{b^5 \left (a^2-b^2\right ) d}\\ &=\frac {\left (2 A b^2-4 a b B+6 a^2 C+b^2 C\right ) \tanh ^{-1}(\sin (c+d x))}{2 b^4 d}-\frac {2 a \left (a^2 A b^2-2 A b^4-2 a^3 b B+3 a b^3 B+3 a^4 C-4 a^2 b^2 C\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a+b}}\right )}{(a-b)^{3/2} b^4 (a+b)^{3/2} d}+\frac {\left (2 a^2 b B-b^3 B-a b^2 (A-2 C)-3 a^3 C\right ) \tan (c+d x)}{b^3 \left (a^2-b^2\right ) d}+\frac {\left (2 A b^2-2 a b B+3 a^2 C-b^2 C\right ) \sec (c+d x) \tan (c+d x)}{2 b^2 \left (a^2-b^2\right ) d}-\frac {\left (A b^2-a (b B-a C)\right ) \sec ^2(c+d x) \tan (c+d x)}{b \left (a^2-b^2\right ) d (a+b \sec (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.23, size = 519, normalized size = 1.66 \begin {gather*} \frac {(b+a \cos (c+d x)) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac {8 a \left (-2 A b^4-2 a^3 b B+3 a b^3 B+a^2 b^2 (A-4 C)+3 a^4 C\right ) \tanh ^{-1}\left (\frac {(-a+b) \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2-b^2}}\right ) (b+a \cos (c+d x))}{\left (a^2-b^2\right )^{3/2}}-2 \left (2 A b^2-4 a b B+6 a^2 C+b^2 C\right ) (b+a \cos (c+d x)) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+2 \left (2 A b^2-4 a b B+6 a^2 C+b^2 C\right ) (b+a \cos (c+d x)) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )+\frac {b^2 C (b+a \cos (c+d x))}{\left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^2}+\frac {4 b (b B-2 a C) (b+a \cos (c+d x)) \sin \left (\frac {1}{2} (c+d x)\right )}{\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )}-\frac {b^2 C (b+a \cos (c+d x))}{\left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^2}+\frac {4 b (b B-2 a C) (b+a \cos (c+d x)) \sin \left (\frac {1}{2} (c+d x)\right )}{\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )}+\frac {4 a^2 b \left (A b^2+a (-b B+a C)\right ) \sin (c+d x)}{(-a+b) (a+b)}\right )}{2 b^4 d (A+2 C+2 B \cos (c+d x)+A \cos (2 (c+d x))) (a+b \sec (c+d x))^2} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.23, size = 365, normalized size = 1.17
method | result | size |
derivativedivides | \(\frac {\frac {C}{2 b^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {2 b B -4 a C -C b}{2 b^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}+\frac {\left (-2 A \,b^{2}+4 a b B -6 a^{2} C -b^{2} C \right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2 b^{4}}-\frac {C}{2 b^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {2 b B -4 a C -C b}{2 b^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {\left (2 A \,b^{2}-4 a b B +6 a^{2} C +b^{2} C \right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2 b^{4}}+\frac {2 a \left (\frac {a b \left (A \,b^{2}-a b B +a^{2} C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\left (a^{2}-b^{2}\right ) \left (a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-b \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-a -b \right )}-\frac {\left (a^{2} A \,b^{2}-2 A \,b^{4}-2 a^{3} b B +3 a \,b^{3} B +3 a^{4} C -4 C \,a^{2} b^{2}\right ) \arctanh \left (\frac {\left (a -b \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (a +b \right ) \left (a -b \right )}}\right )}{\left (a +b \right ) \left (a -b \right ) \sqrt {\left (a +b \right ) \left (a -b \right )}}\right )}{b^{4}}}{d}\) | \(365\) |
default | \(\frac {\frac {C}{2 b^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {2 b B -4 a C -C b}{2 b^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}+\frac {\left (-2 A \,b^{2}+4 a b B -6 a^{2} C -b^{2} C \right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2 b^{4}}-\frac {C}{2 b^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {2 b B -4 a C -C b}{2 b^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {\left (2 A \,b^{2}-4 a b B +6 a^{2} C +b^{2} C \right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2 b^{4}}+\frac {2 a \left (\frac {a b \left (A \,b^{2}-a b B +a^{2} C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\left (a^{2}-b^{2}\right ) \left (a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-b \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-a -b \right )}-\frac {\left (a^{2} A \,b^{2}-2 A \,b^{4}-2 a^{3} b B +3 a \,b^{3} B +3 a^{4} C -4 C \,a^{2} b^{2}\right ) \arctanh \left (\frac {\left (a -b \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (a +b \right ) \left (a -b \right )}}\right )}{\left (a +b \right ) \left (a -b \right ) \sqrt {\left (a +b \right ) \left (a -b \right )}}\right )}{b^{4}}}{d}\) | \(365\) |
risch | \(\text {Expression too large to display}\) | \(1753\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 724 vs.
\(2 (297) = 594\).
time = 125.33, size = 1505, normalized size = 4.82 \begin {gather*} \left [\frac {2 \, {\left ({\left (3 \, C a^{6} - 2 \, B a^{5} b + {\left (A - 4 \, C\right )} a^{4} b^{2} + 3 \, B a^{3} b^{3} - 2 \, A a^{2} b^{4}\right )} \cos \left (d x + c\right )^{3} + {\left (3 \, C a^{5} b - 2 \, B a^{4} b^{2} + {\left (A - 4 \, C\right )} a^{3} b^{3} + 3 \, B a^{2} b^{4} - 2 \, A a b^{5}\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {a^{2} - b^{2}} \log \left (\frac {2 \, a b \cos \left (d x + c\right ) - {\left (a^{2} - 2 \, b^{2}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {a^{2} - b^{2}} {\left (b \cos \left (d x + c\right ) + a\right )} \sin \left (d x + c\right ) + 2 \, a^{2} - b^{2}}{a^{2} \cos \left (d x + c\right )^{2} + 2 \, a b \cos \left (d x + c\right ) + b^{2}}\right ) + {\left ({\left (6 \, C a^{7} - 4 \, B a^{6} b + {\left (2 \, A - 11 \, C\right )} a^{5} b^{2} + 8 \, B a^{4} b^{3} - 4 \, {\left (A - C\right )} a^{3} b^{4} - 4 \, B a^{2} b^{5} + {\left (2 \, A + C\right )} a b^{6}\right )} \cos \left (d x + c\right )^{3} + {\left (6 \, C a^{6} b - 4 \, B a^{5} b^{2} + {\left (2 \, A - 11 \, C\right )} a^{4} b^{3} + 8 \, B a^{3} b^{4} - 4 \, {\left (A - C\right )} a^{2} b^{5} - 4 \, B a b^{6} + {\left (2 \, A + C\right )} b^{7}\right )} \cos \left (d x + c\right )^{2}\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) - {\left ({\left (6 \, C a^{7} - 4 \, B a^{6} b + {\left (2 \, A - 11 \, C\right )} a^{5} b^{2} + 8 \, B a^{4} b^{3} - 4 \, {\left (A - C\right )} a^{3} b^{4} - 4 \, B a^{2} b^{5} + {\left (2 \, A + C\right )} a b^{6}\right )} \cos \left (d x + c\right )^{3} + {\left (6 \, C a^{6} b - 4 \, B a^{5} b^{2} + {\left (2 \, A - 11 \, C\right )} a^{4} b^{3} + 8 \, B a^{3} b^{4} - 4 \, {\left (A - C\right )} a^{2} b^{5} - 4 \, B a b^{6} + {\left (2 \, A + C\right )} b^{7}\right )} \cos \left (d x + c\right )^{2}\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, {\left (C a^{4} b^{3} - 2 \, C a^{2} b^{5} + C b^{7} - 2 \, {\left (3 \, C a^{6} b - 2 \, B a^{5} b^{2} + {\left (A - 5 \, C\right )} a^{4} b^{3} + 3 \, B a^{3} b^{4} - {\left (A - 2 \, C\right )} a^{2} b^{5} - B a b^{6}\right )} \cos \left (d x + c\right )^{2} - {\left (3 \, C a^{5} b^{2} - 2 \, B a^{4} b^{3} - 6 \, C a^{3} b^{4} + 4 \, B a^{2} b^{5} + 3 \, C a b^{6} - 2 \, B b^{7}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{4 \, {\left ({\left (a^{5} b^{4} - 2 \, a^{3} b^{6} + a b^{8}\right )} d \cos \left (d x + c\right )^{3} + {\left (a^{4} b^{5} - 2 \, a^{2} b^{7} + b^{9}\right )} d \cos \left (d x + c\right )^{2}\right )}}, -\frac {4 \, {\left ({\left (3 \, C a^{6} - 2 \, B a^{5} b + {\left (A - 4 \, C\right )} a^{4} b^{2} + 3 \, B a^{3} b^{3} - 2 \, A a^{2} b^{4}\right )} \cos \left (d x + c\right )^{3} + {\left (3 \, C a^{5} b - 2 \, B a^{4} b^{2} + {\left (A - 4 \, C\right )} a^{3} b^{3} + 3 \, B a^{2} b^{4} - 2 \, A a b^{5}\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {-a^{2} + b^{2}} \arctan \left (-\frac {\sqrt {-a^{2} + b^{2}} {\left (b \cos \left (d x + c\right ) + a\right )}}{{\left (a^{2} - b^{2}\right )} \sin \left (d x + c\right )}\right ) - {\left ({\left (6 \, C a^{7} - 4 \, B a^{6} b + {\left (2 \, A - 11 \, C\right )} a^{5} b^{2} + 8 \, B a^{4} b^{3} - 4 \, {\left (A - C\right )} a^{3} b^{4} - 4 \, B a^{2} b^{5} + {\left (2 \, A + C\right )} a b^{6}\right )} \cos \left (d x + c\right )^{3} + {\left (6 \, C a^{6} b - 4 \, B a^{5} b^{2} + {\left (2 \, A - 11 \, C\right )} a^{4} b^{3} + 8 \, B a^{3} b^{4} - 4 \, {\left (A - C\right )} a^{2} b^{5} - 4 \, B a b^{6} + {\left (2 \, A + C\right )} b^{7}\right )} \cos \left (d x + c\right )^{2}\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) + {\left ({\left (6 \, C a^{7} - 4 \, B a^{6} b + {\left (2 \, A - 11 \, C\right )} a^{5} b^{2} + 8 \, B a^{4} b^{3} - 4 \, {\left (A - C\right )} a^{3} b^{4} - 4 \, B a^{2} b^{5} + {\left (2 \, A + C\right )} a b^{6}\right )} \cos \left (d x + c\right )^{3} + {\left (6 \, C a^{6} b - 4 \, B a^{5} b^{2} + {\left (2 \, A - 11 \, C\right )} a^{4} b^{3} + 8 \, B a^{3} b^{4} - 4 \, {\left (A - C\right )} a^{2} b^{5} - 4 \, B a b^{6} + {\left (2 \, A + C\right )} b^{7}\right )} \cos \left (d x + c\right )^{2}\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) - 2 \, {\left (C a^{4} b^{3} - 2 \, C a^{2} b^{5} + C b^{7} - 2 \, {\left (3 \, C a^{6} b - 2 \, B a^{5} b^{2} + {\left (A - 5 \, C\right )} a^{4} b^{3} + 3 \, B a^{3} b^{4} - {\left (A - 2 \, C\right )} a^{2} b^{5} - B a b^{6}\right )} \cos \left (d x + c\right )^{2} - {\left (3 \, C a^{5} b^{2} - 2 \, B a^{4} b^{3} - 6 \, C a^{3} b^{4} + 4 \, B a^{2} b^{5} + 3 \, C a b^{6} - 2 \, B b^{7}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{4 \, {\left ({\left (a^{5} b^{4} - 2 \, a^{3} b^{6} + a b^{8}\right )} d \cos \left (d x + c\right )^{3} + {\left (a^{4} b^{5} - 2 \, a^{2} b^{7} + b^{9}\right )} d \cos \left (d x + c\right )^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right ) \sec ^{3}{\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 428, normalized size = 1.37 \begin {gather*} -\frac {\frac {4 \, {\left (3 \, C a^{5} - 2 \, B a^{4} b + A a^{3} b^{2} - 4 \, C a^{3} b^{2} + 3 \, B a^{2} b^{3} - 2 \, A a b^{4}\right )} {\left (\pi \left \lfloor \frac {d x + c}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (-2 \, a + 2 \, b\right ) + \arctan \left (-\frac {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{\sqrt {-a^{2} + b^{2}}}\right )\right )}}{{\left (a^{2} b^{4} - b^{6}\right )} \sqrt {-a^{2} + b^{2}}} - \frac {4 \, {\left (C a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - B a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + A a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (a^{2} b^{3} - b^{5}\right )} {\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a - b\right )}} - \frac {{\left (6 \, C a^{2} - 4 \, B a b + 2 \, A b^{2} + C b^{2}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right )}{b^{4}} + \frac {{\left (6 \, C a^{2} - 4 \, B a b + 2 \, A b^{2} + C b^{2}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right )}{b^{4}} - \frac {2 \, {\left (4 \, C a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 2 \, B b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + C b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 4 \, C a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \, B b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + C b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{2} b^{3}}}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 17.55, size = 2500, normalized size = 8.01 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________